//登录
.login{  
    text-align: center;
    padding:4rem 0.5rem;
    img{
        margin:0 auto 0.22rem;
        box-sizing: border-box;
        width:2rem;
        height:2rem;
    }
    h1{
        padding: 0.22rem;
        margin-bottom: 0.22rem;
        text-align: center;
        border-bottom: 0.01rem solid #ddd;
        font-size: 0.36rem;
        font-weight:normal;
    }
    h4{
        font-weight: normal;
        color: #999;
        margin-bottom: 0.2rem;
    }
}
// 首页
.index{
    .in-search{
        position: relative;
        padding: 0 0.2rem;
        text-align: center;
        box-sizing: border-box;
        display: block;
        input{
            width: 100%;
            background: #f5f5f5;
            border-radius: 0.7rem;
            height: 0.7rem;
            border: none;
            box-sizing: border-box;
        }
        .in-icon{
            position: absolute;
            left:43%;
            top: 0.15rem;
            img{
                width: 0.33rem;
                height: 0.34rem;
                float: left;
                margin-right: 0.1rem;
            }
            span{
                font-size: 0.25rem;
            }
        }
    }
    .in-title{
        display: flex;
        justify-content: space-around;
        padding:0.2rem 0.5rem 0.3rem;
        background: #f5f5f5;
        margin-top: 0.2rem;
        font-weight: 600;
        span{
            font-size: 0.26rem;
        }
    }
    .container-fluid{
        padding: 0 0.1rem 1.2rem;
        background: #f5f5f5;
        overflow: hidden;
        .box{
            width: 3.6rem;
            float: left;
            background: #fff;
            &:nth-child(2n+1){
                margin-right: 0.1rem;
            }
            img{
                width: 3.6rem;
                height: 3.6rem;
            }
            p{
                margin: 0.1rem 0 0.1rem 0.2rem;
                font-size: 0.26rem;
            }
            h6{
                font-size: 0.24rem;
                color: #999;
                padding-left: 0.4rem;
                background: url(../icon/gift.png) no-repeat left center;
                background-size: 0.24rem;
                margin:0 0 0.1rem 0.2rem;
            }
        }
    }
}
//classh产品分类
.classh{
    .classh_top{
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
    }
    .nav{
        background: #222222;
        overflow: hidden;
        padding: 0.15rem 0;
        display: flex;
        img{
            width: 0.3rem;
            height: 0.3rem;
            margin: 0.1rem;
        }
        span{
            width: 7rem;
            overflow-x: scroll;
            white-space:nowrap;
            margin-top: 0.05rem;
            a{
                color: #fff;
                font-size: 0.3rem;
                margin: 0 0.2rem;
                display: inline-block;
            }
            .a-select{
                color: #BCAD53 !important;
            }
        }
    }
    .nav-price{
        background: #f5f5f5;
        .price-title{
            height: 0.7rem;
            line-height: 0.7rem;
            display: flex;
            justify-content: center;
            align-items: center;
            a{
                font-size: 0.3rem;
                margin-right: 0.1rem;
            }
            img{
                width: 0.4rem;
                height: 0.4rem;
            }
        }
        .price-ul{
            display: flex;
            justify-content:space-around;
            flex: 1;
            flex-wrap: wrap;
            .price-select{
                background: #FF2E2E;
                color: #fff;
            }
            a{
                width:40%;
                text-align: center;
                margin-bottom: 0.2rem;
                font-size: 0.3rem;
                background: #fff;
                border: solid 1px #eeeeee;
                border-radius: 0.1rem;
                padding: 0.1rem;
            }
        }
    }
    .product-list{
        background: #f5f5f5;
        margin-bottom: 2rem;
        margin-top: 1.5rem;
        ul{
            display: flex;
            justify-content: space-around;
            flex: 1;
            flex-wrap: wrap;
            li{
                width: 3.6rem;               
                background: #fff;
                margin-bottom: 0.1rem;
                position: relative;
                a{
                    img{
                        width: 100%;
                        height: 3.6rem;
                    }
                    p{
                        padding: 0.05rem 0.1rem;
                        overflow : hidden;
                        text-overflow: ellipsis;
                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                        font-size: 0.26rem;
                        line-height: 0.4rem;
                        height: 0.8rem;
                    }
                    h5{
                        color: #FF2E2E;
                        font-size: 0.28rem;
                        margin: 0.1rem 0.05rem;
                    }
                }
                .product-btn{
                    display: flex;
                    a{
                        width: 50%;
                        box-sizing: border-box;
                    }
                    .iscart{
                        width: 100%;
                    }
                }
                .cartNum{
                    position: absolute;
                    top: 0;
                    right: 0;
                    padding: 0.05rem;
                    background: #dd1f1f;
                    color: #fff;
                }
            }
        }
    }
    .product-cart{
        position: fixed;
        bottom: 1rem;
        left: 0;
        right: 0;
        background: #fff;
        padding: 0 0.1rem;
        .cart-list{
            .cart-list-title{
                display: flex;
                justify-content: space-between;
                padding: 0.2rem 0.1rem;
            }
            ul{
                li{
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    .cart-li-fl{
                        display: flex;
                        justify-content: space-between;
                        img{
                            width: 0.9rem;
                            height: 0.9rem;
                            margin-right: 0.2rem;
                        }
                        p{
                            font-size: 0.21rem;
                            width: 3.5rem;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                        }
                    }
                    .cart-li-fr{
                        a{
                            padding: 0.1rem 0.2rem;
                            border: solid 1px #eeeeee;
                        }
                        span{
                            padding: 0.1rem 0.2rem;
                        }
                    }
                }
            }
        }
        .cart-show{
            display: flex;
            justify-content: space-between;
            padding: 0.1rem 0;
            border-top: solid 1px #eee;
            .cart-show-fl{
                padding-right: 0.5rem;
                background: url(../icon/top.png) no-repeat right top;
                background-size: 0.4rem;
                h5{
                    font-size: 0.35rem;
                    color: #FF2E2E;
                }
            }
        }
    }
}